package com.hub.mapper;

import com.hub.entity.AuthUserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hub.model.auth.AuthUserInfoVo;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hub
 * @since 2020-05-13
 */
@Repository
public interface AuthUserInfoMapper extends BaseMapper<AuthUserInfo> {

    /**
     * 根据用户名获取用户信息
     * @param account
     * @return
     */
    AuthUserInfo selectUserInfoByAccount(String account);

    /**
     * 根据userId查询菜单权限
     * @param userId
     * @return
     */
    AuthUserInfoVo selectMenuByUserId(String userId);
}
